// random.cpp.  Maggie Johnson
// Description: Illustrates how to generate a random number in C++

#include <iostream>
#include <time.h>
using namespace std;

int main (int argc, char **argv)
{
  double random_number;

  srand (atoi(argv[1]));

  random_number = ((double) rand()) / (double) RAND_MAX;

  cout << "Your random number:" << random_number << endl;
}
